﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="QuanLyPhongTroDataSet" targetNamespace="http://tempuri.org/QuanLyPhongTroDataSet.xsd" xmlns:mstns="http://tempuri.org/QuanLyPhongTroDataSet.xsd" xmlns="http://tempuri.org/QuanLyPhongTroDataSet.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="QuanLyPhongTroConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="QuanLyPhongTroConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.QuanLyPhongTroDevLinQ.Properties.Settings.GlobalReference.Default.QuanLyPhongTroConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="PhongTableAdapter" GeneratorDataComponentClassName="PhongTableAdapter" Name="Phong" UserDataComponentName="PhongTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="QuanLyPhongTroConnectionString (Settings)" DbObjectName="QuanLyPhongTro.dbo.Phong" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[Phong] WHERE (([MaPhong] = @Original_MaPhong))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_MaPhong" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="MaPhong" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT MaPhong FROM dbo.Phong</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[Phong] SET [MaPhong] = @MaPhong WHERE (([MaPhong] = @Original_MaPhong));
SELECT MaPhong FROM Phong WHERE (MaPhong = @MaPhong)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@MaPhong" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="MaPhong" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_MaPhong" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="MaPhong" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="MaPhong" DataSetColumn="MaPhong" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="QuanLyPhongTroDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="QuanLyPhongTroDataSet" msprop:Generator_UserDSName="QuanLyPhongTroDataSet">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="Phong" msprop:Generator_TableClassName="PhongDataTable" msprop:Generator_TableVarName="tablePhong" msprop:Generator_TablePropName="Phong" msprop:Generator_RowDeletingName="PhongRowDeleting" msprop:Generator_RowChangingName="PhongRowChanging" msprop:Generator_RowEvHandlerName="PhongRowChangeEventHandler" msprop:Generator_RowDeletedName="PhongRowDeleted" msprop:Generator_UserTableName="Phong" msprop:Generator_RowChangedName="PhongRowChanged" msprop:Generator_RowEvArgName="PhongRowChangeEvent" msprop:Generator_RowClassName="PhongRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="MaPhong" msprop:Generator_ColumnVarNameInTable="columnMaPhong" msprop:Generator_ColumnPropNameInRow="MaPhong" msprop:Generator_ColumnPropNameInTable="MaPhongColumn" msprop:Generator_UserColumnName="MaPhong">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="10" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Phong" />
      <xs:field xpath="mstns:MaPhong" />
    </xs:unique>
  </xs:element>
</xs:schema>